import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { Brand } from 'src/app/model/brand';

@Component({
  selector: 'app-brand-updater',
  templateUrl: './brand-updater.component.html',
  styleUrls: ['./brand-updater.component.less']
})
export class BrandUpdaterComponent implements OnInit {

  brand: Brand;

  constructor(
    private route: ActivatedRoute,
  ) { }

  ngOnInit(): void {
    this.route.data.subscribe(
      (data: {brand: Brand}) => {
        this.brand = data.brand;
      }
    )
  }

}
